﻿using System;
using System.ComponentModel.Composition;
using BizControl.Presentation.ParticipantsModule.ViewModels;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Prism;
using System.Windows.Controls;

namespace BizControl.Presentation.ParticipantsModule.Views
{
  [Export]
  public partial class ParticipantsView : UserControl
  {
    public ParticipantsView()
    {
      InitializeComponent();
    }

    [ImportingConstructor]
    public ParticipantsView(ParticipantsViewModel viewModel)
      : this()
    {
      this.DataContext = viewModel;
      viewModel.ViewRegionContext = RegionContext.GetObservableContext(this);
    }

  }

}
